cmake_minimum_required(VERSION 2.8.3)
project(serial)
if(UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif(UNIX)

find_package(catkin REQUIRED COMPONENTS
  
  roscpp
  rospy
  std_msgs
  didi_msgs
  navigation_msg
  message_generation

)


catkin_package(

  #INCLUDE_DIRS include
  LIBRARIES navigation/serial
  CATKIN_DEPENDS message_runtime roscpp rospy std_msgs navigation_msg
  DEPENDS system_lib

)

include_directories(include ${catkin_INCLUDE_DIRS} )

add_library(layer1 src/layer1.cpp )
add_library(layer2 src/layer2.cpp )

add_executable(serial_uart_node  src/serial_uart_node.cpp src/layer1.cpp src/layer2.cpp)

target_link_libraries(serial_uart_node ${catkin_LIBRARIES})


